#include <page_manager.h>
#include <string.h>
static PPageAction g_ptPageAction = NULL;

void PageRegister( PPageAction ptPageAction )
{
	ptPageAction->ptNext = g_ptPageAction;
	g_ptPageAction = ptPageAction;
}

PPageAction Select_Page(char * name)
{
	PPageAction ptTemp = g_ptPageAction;
	
	while(ptTemp)
	{
		if(strcmp(name , ptTemp->name) == 0)
			return ptTemp;
		ptTemp = ptTemp->ptNext;
	}
	
	return NULL;
}

void PagesRegister(void)
{
	extern void MainRegister(void);
	MainRegister();
}

